<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="mainMenu.title"/></title>
    <meta name="heading" content="<fmt:message key='mainMenu.heading'/>"/>
    <meta name="menu" content="MainMenu"/>
</head>

<p><fmt:message key="mainMenu.message"/></p>

<div class="separator"></div>

<ul class="glassList">
    <c:if test="${statics != ''}">
	    <li>
	        <a href="<c:url value='/feedbacknew.html'/>"><c:out value="${statics}"/></a>
		    <c:forEach var="fb" items="${feedbacks}">
	        	<a href="<c:url value='/checkpatient.html?t='/><c:out value="${fb.id}"/>&u=<c:out value="${fb.patient.id}"/>"><c:out value="${fb.patient.name}"/></a>&nbsp;&nbsp;
	        </c:forEach>
	    </li>
    </c:if>
    <c:if test="${care != ''}">
	    <li>
	        <a href="<c:url value='/usercare.html'/>"><c:out value="${care}"/></a>
	    </li>
    </c:if>

	    <li>
	    	<fmt:message key="user.recent"/>
		    <c:forEach var="user" items="${recent}">
	        	<a href="<c:url value='/patient.html?u='/><c:out value="${user.id}"/>"><c:out value="${user.name}"/></a>&nbsp;&nbsp;
	        </c:forEach>
	    </li>
	    
    <li>
		<form method="post" action="search.html" id="searchuserForm">
		<ul>
		    <li>
		        <input name="key" id="key" />
		    </li>
		    <li class="buttonBar bottom">
		        <input type="submit" name="search" class="button" 
		            value="<fmt:message key="button.searchUser"/>" />
		            <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/userform.html?method=Add"/>'"
        value="<fmt:message key="button.addUser"/>"/>
		    </li>
		</ul>
		</form>        
    </li>
	    
            
</ul>


